
<template>
  <div class="home">
    <button @click="open">点击</button>
    <Message />
  </div>
</template>

<script>
// @ is an alias to /src
 import Message from '../extends/Message.vue'

export default {
  name: 'Home',
  components: {
      Message 
  },
  methods: {
    open(){
       this.$message("这是一条消息提示")
    }
  },
}
</script>
